package com.ibm.cloud.banking.prod.service;

import com.ibm.cloud.banking.annotation.PBS;
import com.ibm.cloud.banking.prod.dto.ProductCheckDTO;
import com.ibm.cloud.banking.prod.dto.ProductInfo;
import com.ibm.cloud.invoker.PbsService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;

@PBS(servNo = "PBS500001")
@Slf4j
public class CheckProductAvailableService implements PbsService<ProductCheckDTO, ProductInfo> {


    @Autowired
    ProductParameterQueryServiceImpl productParameterQueryServiceImpl;

    @Override
    public ProductInfo doService(ProductCheckDTO productCheckDTO) {
        return productParameterQueryServiceImpl.checkProductAvailable(productCheckDTO);
    }
}
